package com.hanamaki.oop.demo01;


/*
* 引用传递  本质还是值传递
* */
public class Demo05 {


    public static void main(String[] args) {
        /* 初始化Person类 */
        Person person = new Person();
        System.out.println(person.name);

        change(person);
        System.out.println(person.name);
    }

    public static void change(Person person) {
        person.name = "hanamaki";
    }

}

/*
* 定义一个 Person类
* */
class Person {

    String name;

}